<?php

namespace app\index\controller;

use app\BaseController;
use app\common\service\JsonService;
use think\facade\Request;

class IndexController extends BaseController
{


    public function index($name = '你好,likeadmin')
    {

        return  redirect('https://www.ihjmf.com/pc');

//        $template = app()->getRootPath() . 'public/pc/index.html';
//        if (Request::isMobile()) {
//            $template = app()->getRootPath() . 'public/mobile/index.html';
//        }
//        if (file_exists($template)) {
//            return view($template);
//        }
//        return JsonService::success($name);
    }


}
